<template>
	<button @tap="a">设置token</button>
	<button @tap="remToken()">删除token</button>
	<button @tap="req">请求数据</button>
	<uni-card>
		<text>这是一个基础卡片示例，内容较少，此示例展示了一个没有任何属性不带阴影的卡片。</text>
	</uni-card>
</template>

<script setup>
	import {
		ref,
		reactive
	} from "vue"
	import {homeStore} from "@/store/index.js"
	import {http} from '@/utils/request.js'
	const {token,setToken,remToken} = homeStore()
	
	const a = () => {
		console.log(1);
		setToken('123')
		console.log('token',token);
	}
	const req = () => {
		console.log(1);
		http({
			method:'GET',
			data:{
				distributionSite:10
			},
			url:'/home/banner'
		})
	}
</script>

<style lang="scss" scoped>

</style>